import qs from "qs";
import http from "@/http";

// 账号登录
export const authLogin = (params) => {
  return http.post("/api/auth/login", qs.stringify(params));
};
// 验证码登录
export const authLoginCode = (params) => {
  return http.post("/api/auth/login_code", qs.stringify(params));
};
// 账号注册
export const authRegister = (params) => {
  return http.post("/api/auth/register", qs.stringify(params));
};
// 验证码
export const authSendCode = (params) => {
  return http.post("/api/auth/send_code", qs.stringify(params));
};
// 用户信息
export const userInfo = (params) => {
  return http.post("/api/user/info", qs.stringify(params));
};
// 轮播图
export const slideIndex = (params) => {
  return http.post("/api/slide/index", qs.stringify(params));
};
// 新歌首发
export const indexNewMusic = (params) => {
  return http.post("/api/index/new_music", qs.stringify(params));
};
// 热门歌手
export const indexHotUser = (params) => {
  return http.post("/api/index/hot_user", qs.stringify(params));
};
// 热门专辑
export const indexHotAlbum = (params) => {
  return http.post("/api/index/hot_album", qs.stringify(params));
};
// 热门视频
export const indexHotVideo = (params) => {
  return http.post("/api/index/hot_video", qs.stringify(params));
};
// 歌单列表
export const songsIndex = (params) => {
  return http.post("/api/songs/index", qs.stringify(params));
};
// 标签
export const tagIndex = (params) => {
  return http.post("/api/tag/index", qs.stringify(params));
};
// 风格
export const styleIndex = (params) => {
  return http.post("/api/style/index", qs.stringify(params));
};
// 情绪
export const feelIndex = (params) => {
  return http.post("/api/feel/index", qs.stringify(params));
};
// 场景
export const scenesIndex = (params) => {
  return http.post("/api/scenes/index", qs.stringify(params));
};
// 是否收藏
export const musicCollectIsCollect = (params) => {
  return http.post("/api/music_collect/is_collect", qs.stringify(params));
};
// 收藏
export const musicCollectAdd = (params) => {
  return http.post("/api/music_collect/add", qs.stringify(params));
};
// 取消收藏
export const musicCollectDel = (params) => {
  return http.post("/api/music_collect/del", qs.stringify(params));
};
// 歌单详情
export const songsInfo = (params) => {
  return http.post("/api/songs/info", qs.stringify(params));
};
// 视频列表
export const videoIndex = (params) => {
  return http.post("/api/video/index", qs.stringify(params));
};
// 视频详情
export const videoInfo = (params) => {
  return http.post("/api/video/info", qs.stringify(params));
};
// 视频评论
export const videoCommentIndex = (params) => {
  return http.post("/api/video_comment/index", qs.stringify(params));
};
// 视频评论点赞
export const videoLikeAdd = (params) => {
  return http.post("/api/video_like/add", qs.stringify(params));
};
// 视频评论取消点赞
export const videoLikeDel = (params) => {
  return http.post("/api/video_like/del", qs.stringify(params));
};
// 歌手
export const userIndex = (params) => {
  return http.post("/api/user/index", qs.stringify(params));
};
// 歌手用户详情
export const userInfo2 = (params) => {
  return http.post("/api/user/info2", qs.stringify(params));
};
// 排行榜
export const indexRank = (params) => {
  return http.post("/api/index/rank", qs.stringify(params));
};
// 新歌榜
export const newMusicRank = (params) => {
  return http.post("/api/index/new_music_rank", qs.stringify(params));
};
// 新歌榜详情
export const newMusicRankInfo = (params) => {
  return http.post("/api/index/new_music_rank_info", qs.stringify(params));
};
// 特色榜
export const indexFeatureRank = (params) => {
  return http.post("/api/index/feature_rank", qs.stringify(params));
};
// 特色榜详情
export const indexFeatureRankInfo = (params) => {
  return http.post("/api/index/feature_rank_info", qs.stringify(params));
};
// 我的歌单
export const songsMy = (params) => {
  return http.post("/api/songs/my", qs.stringify(params));
};
// 添加我的歌单
export const songsAdd = (params) => {
  return http.post("/api/songs/add", qs.stringify(params));
};
// 删除我的歌单
export const songsDel = (params) => {
  return http.post("/api/songs/del", qs.stringify(params));
};
// 收藏歌单
export const songsCollectAdd = (params) => {
  return http.post("/api/songs_collect/add", qs.stringify(params));
};
// 取消收藏
export const songsCollectDel = (params) => {
  return http.post("/api/songs_collect/del", qs.stringify(params));
};
// 歌单是否收藏
export const songsCollectIsCollect = (params) => {
  return http.post("/api/songs_collect/is_collect", qs.stringify(params));
};
// 我喜欢
export const musicCollectMy = (params) => {
  return http.post("/api/music_collect/my", qs.stringify(params));
};
// 收藏的歌单
export const songsCollectMy = (params) => {
  return http.post("/api/songs_collect/my", qs.stringify(params));
};
// 添加到歌单
export const songsListAdd = (params) => {
  return http.post("/api/songs_list/add", qs.stringify(params));
};
// 搜索
export const indexSearch = (params) => {
  return http.post("/api/index/search", qs.stringify(params));
};
// 音乐详情
export const musicInfo = (params) => {
  return http.post("/api/music/info", qs.stringify(params));
};
// 单曲评论
export const musicCommentAdd = (params) => {
  return http.post("/api/music_comment/add", qs.stringify(params));
};
// 音乐评论列表
export const musicCommentIndex = (params) => {
  return http.post("/api/music_comment/index", qs.stringify(params));
};
// 单曲评论点赞
export const musicLikeAdd = (params) => {
  return http.post("/api/music_like/add", qs.stringify(params));
};
// 单曲评论取消点赞
export const musicLikeDel = (params) => {
  return http.post("/api/music_like/del", qs.stringify(params));
};
// 单曲列表
export const musicIndex = (params) => {
  return http.post("/api/music/index", qs.stringify(params));
};
// 专辑列表
export const albumIndex = (params) => {
  return http.post("/api/album/index", qs.stringify(params));
};
// 专辑详情
export const albumInfo = (params) => {
  return http.post("/api/album/info", qs.stringify(params));
};
// 商品列表
export const goodIndex = (params) => {
  return http.post("/api/good/index", qs.stringify(params));
};
// 商品详情
export const goodInfo = (params) => {
  return http.post("/api/good/info", qs.stringify(params));
};
// 下单
export const goodOrderAdd = (params) => {
  return http.post("/api/good_order/add", qs.stringify(params));
};
// 地址列表
export const addressIndex = (params) => {
  return http.post("/api/address/index", qs.stringify(params));
};
// 添加地址
export const addressAdd = (params) => {
  return http.post("/api/address/add", qs.stringify(params));
};
// 修改地址
export const addressEdit = (params) => {
  return http.post("/api/address/edit", qs.stringify(params));
};
// 删除地址
export const addressDel = (params) => {
  return http.post("/api/address/del", qs.stringify(params));
};
// 订单列表
export const goodOrderIndex = (params) => {
  return http.post("/api/good_order/index", qs.stringify(params));
};
// 订单详情 
export const goodOrderInfo = (params) => {
  return http.post("/api/good_order/info", qs.stringify(params));
};
// 商品评论列表
export const goodCommentIndex = (params) => {
  return http.post("/api/good_comment/index", qs.stringify(params));
};
// 商品评论 
export const goodCommentAdd = (params) => {
  return http.post("/api/good_comment/add", qs.stringify(params));
};
// 商品评论点赞 
export const goodLikeAdd = (params) => {
  return http.post("/api/good_like/add", qs.stringify(params));
};
// 商品评论取消点赞 
export const goodLikeDel = (params) => {
  return http.post("/api/good_like/del", qs.stringify(params));
};
// 音乐人申请 
export const applyAdd = (params) => {
  return http.post("/api/apply/add", qs.stringify(params));
};
// 音乐人申请列表
export const applyIndex = (params) => {
  return http.post("/api/apply/index", qs.stringify(params));
};
// 关注
export const followAdd = (params) => {
  return http.post("/api/follow/add", qs.stringify(params));
};
// 取消关注 
export const followDel = (params) => {
  return http.post("/api/follow/del", qs.stringify(params));
};
// 是否关注 
export const followIsFollow = (params) => {
  return http.post("/api/follow/is_follow", qs.stringify(params));
};
// 我的关注
export const followIndex = (params) => {
  return http.post("/api/follow/index", qs.stringify(params));
};
// 我的粉丝 
export const followFans = (params) => {
  return http.post("/api/follow/fans", qs.stringify(params));
};
// 下载 
export const musicDownload = (params) => {
  return http.post("/api/music/download", qs.stringify(params));
};
// 购物车总数
export const cartCount = (params) => {
  return http.post("/api/good_cart/counts", qs.stringify(params));
};
// 信息总数
export const msgCount = (params) => {
  return http.post("/api/message/counts", qs.stringify(params));
};
// 热门歌单
export const indexHotPopula = (params) => {
  return http.post("/api/index/hot_popula", qs.stringify(params));
};
// 热门下载
export const indexHotDonwload = (params) => {
  return http.post("/api/index/hot_download", qs.stringify(params));
};
// 歌单热门推荐
export const hotSongsList = (params) => {
  return http.post("/api/songs/hot", qs.stringify(params));
};
// 我的下载
export const downloadList = (params) => {
  return http.post("/api/music_download/index", qs.stringify(params));
};
// 最近播放
export const nearTimePlayList = (params) => {
  return http.post("/api/music_log/index", qs.stringify(params));
};
// 默认地址
export const defaultAddress = (params) => {
  return http.post("/api/address/moren", qs.stringify(params));
};
// 获取购物车数据
export const goodCartList = (params) => {
  return http.post("/api/good_cart/index", qs.stringify(params));
};
// 歌单评论数据
export const songsCommentList = (params) => {
  return http.post("/api/songs_comment/index", qs.stringify(params));
};
